<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
<style>
.leftmenu {position:absolute;width:150px;left:0;top:40px; bottom:0;z-index:100;overflow:auto; border-right:1px solid #e5e5e5; background-color:#f5f5f5}
.rightcontent {position:absolute;left:150px;top:40px;right:0;bottom:0;z-index:2;overflow:auto;}
.menuli li {line-height:35px;padding-left:15px; cursor: pointer; position: relative;border-bottom: 1px solid #e5e5e5;font-weight: normal;}
.menuli li.cur {background-color:#fff;}
.menuli li.cur a {color:#5a98de;text-decoration:none;}
.menuli li a:hover {text-decoration:none;}
</style>
</block>

<block name="main">
	<nav class="breadcrumb">
		{$title} 
		<!-- <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a> -->
	</nav>
	
	<div class="leftmenu">
		<ul id="treeDemo" class="ztree menuli">
			<li class="cur"><a href="javascript:;" _href="{:U('lessonadmin/clist',array('cid'=>$_GET['cid']))}">班级</a></li>
			<li><a href="javascript:;" _href="{:U('Classadmin/classtypelist',array('cid'=>$_GET['cid']))}">分类</a></li>
			<li><a href="javascript:;" _href="{:U('Work/index/index/',array('cid'=>$_GET['cid']))}">课堂信息</a></li>
		</ul>
	</div>
	<div class="rightcontent">
		<div class="show_iframe">
			<IFRAME ID="testIframe" Name="testIframe" scrolling="yes" frameborder="0" SRC=""></IFRAME>
		</div>
	</div>
</block>

<block name="script">
<script>
$(function(){
	$("#testIframe").attr("src",$("#treeDemo li:eq(0) a").attr("_href"));
});
$(".menuli li").click(function(){
	$(this).addClass("cur").siblings().removeClass("cur");
	var url = $(this).find("a").attr("_href");
	$("#testIframe").attr("src",url);
})
function classtype(){
	console.log("aa");
	$(".menuli li").eq(1).trigger('click');
}
</script>
</block>